package il.ac.braude.sona.infogui;

import il.ac.braude.sona.ui.skeleton.SONAFrame;

import javax.swing.BoxLayout;
import javax.swing.JPanel;

public class InfoFrame extends SONAFrame {
	private JPanel infoPanel = new JPanel();
	public InfoFrame(String title) {
		setTitle(title);
		infoPanel.setLayout(new BoxLayout(infoPanel,BoxLayout.Y_AXIS));
		getContentPane().add(infoPanel);
	}
	
	public void addInfoRow(String label, String value) {
		InfoRow row = new InfoRow();
		row.setInfo(label, value);
		infoPanel.add(row);
	}
}
